* {
    margin: 0;
    padding: 0;
}

body {
    background: #000;
}

.box {
    width: 800px;
    height: 800px;
    background: #000;
    margin: 50px auto;
    padding-top: 50px;
    position: relative;
}

.battery {
    width: 200px;
    height: 320px;
    border-radius: 15px 15px 5px 5px;
    margin: 0 auto;
    background: #fff;
    position: relative;
}

.battery::before {
    content: "";
    width: 50px;
    height: 20px;
    background: #fff;
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -25px;
}

.battery::after {
    content: "";
    background: linear-gradient(to bottom, #7abcff 0%, #00BCD4 44%, #2196F3 100%);
    position: absolute;
    left: 0;
    right: 0;
    top: 90%;
    bottom: 0;

    animation: charging 10s linear infinite;
    animation-fill-mode: forwards;
    box-shadow: 0 14px 28px rgba(33, 150, 243, 0), 0 10px 10px rgba(9, 188, 215, 0.08);
    filter: hue-rotate(90deg);

}

@keyframes charging {
    50% {
        box-shadow: 0 14px 29px rgba(0, 150, 136, 0.83) 0px 4px 10px rgba(9, 188, 215, 0.4);
    }

    95% {
        top: 5%;
        filter: hue-rotate(0deg);
        border-radius: 0 0 5px 5px;
        box-shadow: 0 14px 28px rgba(4, 188, 213, 0.2) 0 10px 10px rgba(9, 188, 215, 0.08);
    }

    100% {
        top: 0;
        filter: hue-rotate(0deg);
        border-radius: 15px 15px 5px 5px;
        box-shadow: 0 14px 28px rgba(4, 188, 213, 0) 0 10px 10px rgba(9, 188, 215, 0.4);
    }
}